package org.chench.test.testrabbitmq.model;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = {MqConstants.QUEU_HELLO})
public class Receiver {

    @RabbitHandler
    public void process(String msg) {
        System.out.println("Received: " + msg);
    }
}
